$(function(){
	var count = 10;
	
	function expand(){
		var ok = false;
		var e = $('.hide-article-box');
		var cv = $("#content_views pre")
		var cvc = $("#content_views pre code")
		let okcount = 0
		if(e.length > 0){
			okcount ++
			e.remove();
			$('#article_content').removeAttr('style');
		}
		if(cv.length > 0 || cvc.length > 0 ){
			okcount ++
			$("#content_views pre").css("user-select","text");
			$("#content_views pre code").css("user-select","text");
		}
		ok = okcount>1
		
		console.log("expand", ok, count);
		
		if(!ok && --count){
			setTimeout(expand, 500);
		}
	}
	
	expand();
});